x86/powernow: fix machine shutdown
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:20:52 +0000 (13:20 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:20:52 +0000 (13:20 +0000)
commit47fbce220aa977961e19396b1c40bef7508cb84e
treea03241faf65dd93020b33a029dc42932e529b14b
parent67b561b2fa128b259cd56a1c93b2b8d3940f72c7
x86/powernow: fix machine shutdown

cpufreq_del_cpu() calls cpufreq_driver->exit() without checking
whether an exit() handler is present, and by adding an exit() handler
to powernow we can at once close the potential memory leak.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/acpi/cpufreq/powernow.c